<?php
/**
 * CreateUser: zlh
 * CreateTime: 2022/1/21 10:50
 * Remark:
 */

namespace App\Func;

class IpFunc
{
    /**
     * 获取IP
     * @return string|null
     */
    public static function getIp(): ?string
    {
        return request()->getClientIp();
    }
}